package 代理模式.没代理的代码;

/**
 * @author zyl
 * @Description
 * @since 2024/1/2 17:33
 */

public class Pursuit {
    private Girl girl;

    public Pursuit(Girl girl) {
        this.girl = girl;
    }

    public void giveDolls(){
        System.out.println(this.girl.getName() + "你好！送你洋娃娃");
    }
    public void giveFlowers(){
        System.out.println(this.girl.getName() + "你好！送你鲜花");
    }
    public void giveChocolate(){
        System.out.println(this.girl.getName() + "你好！送你巧克力");
    }
}
